<template>
    <van-cell @click="onarticle()">
      <template #title>{{article.title}}</template>
      <template #label>
        <span>{{article.aut_name}} </span>
        <span>评论: {{article.collect_count}} </span>
        <span>点赞: {{article.like_count}} </span>
        </template>
    </van-cell>
</template>
<script>
export default {
  data(){
    return{

    }
  },
  props:['article'],
  methods:{
    onarticle(){
      console.log(this.article.title)
      const url = '/article/'+ this.article.art_id
      this.$router.push(url)
    }
  }
}
</script>